1
0
Fork 0
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:
Alex Kotov 2020-11-28 02:51:51 +05:00
parent 1562002649
commit 7c85cd3461
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 1 additions and 41 deletions

3
.gitignore vendored
View file

@ -23,6 +23,3 @@
/test-suite.log
/tests/test*.log
/tests/test*.trs
/tests/hang
/tests/test_hang_segfault

View file

@ -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

View file

@ -1,8 +0,0 @@
#include <kernaux/arch/i386.h>
int main()
{
kernaux_arch_i386_hang();
return 0;
}

View file

@ -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;
}