mirror of
https://github.com/tailix/libkernaux.git
synced 2024-12-11 11:35:27 -05:00
Remove unnecessary tests
This commit is contained in:
parent
1562002649
commit
7c85cd3461
4 changed files with 1 additions and 41 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -23,6 +23,3 @@
|
|||
/test-suite.log
|
||||
/tests/test*.log
|
||||
/tests/test*.trs
|
||||
|
||||
/tests/hang
|
||||
/tests/test_hang_segfault
|
||||
|
|
|
@ -5,22 +5,15 @@ AM_CFLAGS = -std=c99 -I$(top_srcdir)/include
|
|||
lib_LIBRARIES = libkernaux.a
|
||||
|
||||
TESTS = \
|
||||
tests/test_hang_segfault \
|
||||
tests/test_multiboot2_validation
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
$(TESTS) \
|
||||
tests/hang
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
libkernaux_a_SOURCES = \
|
||||
src/arch/i386.S \
|
||||
src/multiboot2.c \
|
||||
src/pfa.c
|
||||
|
||||
tests_hang_SOURCES = $(libkernaux_a_SOURCES) tests/hang.c
|
||||
|
||||
tests_test_hang_segfault_SOURCES = tests/test_hang_segfault.c
|
||||
|
||||
tests_test_multiboot2_validation_SOURCES = \
|
||||
$(libkernaux_a_SOURCES) \
|
||||
tests/test_multiboot2_validation.c
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#include <kernaux/arch/i386.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
kernaux_arch_i386_hang();
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define __USE_POSIX2
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
FILE *const fd = popen("tests/hang 2>&1", "r");
|
||||
assert(fd != NULL);
|
||||
|
||||
char buffer[256];
|
||||
char *const result = fgets(buffer, 256, fd);
|
||||
assert(result == buffer);
|
||||
assert(0 == strncmp(result, "Segmentation fault (core dumped)\n", 256));
|
||||
|
||||
const int status = pclose(fd);
|
||||
assert(status != 0);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue