summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Makefile.am2
-rw-r--r--testsuite/Makefile.in2
-rwxr-xr-xtestsuite/consistency9
-rw-r--r--testsuite/single_file_token_bug.c4
4 files changed, 15 insertions, 2 deletions
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index c243ee2..b932992 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -2,7 +2,7 @@
TESTS = consistency
-EXTRA_DIST = $(TESTS)
+EXTRA_DIST = $(TESTS) single_file_token_bug.c
DISTCLEANFILES = ID
diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
index d37b482..10da762 100644
--- a/testsuite/Makefile.in
+++ b/testsuite/Makefile.in
@@ -205,7 +205,7 @@ sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
TESTS = consistency
-EXTRA_DIST = $(TESTS)
+EXTRA_DIST = $(TESTS) single_file_token_bug.c
DISTCLEANFILES = ID
all: all-am
diff --git a/testsuite/consistency b/testsuite/consistency
index d375b2e..9d4d152 100755
--- a/testsuite/consistency
+++ b/testsuite/consistency
@@ -55,6 +55,15 @@ else
errors=t
fi
+cmd="$bindir/mkid $m_flag"
+echo $cmd
+if eval $cmd; then
+ echo "Good. No crash when dealing with single file"
+else
+ 1>&2 echo "Oops! mkid failed."
+ errors=t
+fi
+
case x$errors in
xt) echo "Some checks failed."
exit 1;;
diff --git a/testsuite/single_file_token_bug.c b/testsuite/single_file_token_bug.c
new file mode 100644
index 0000000..d956ca6
--- /dev/null
+++ b/testsuite/single_file_token_bug.c
@@ -0,0 +1,4 @@
+
+int main(int argc, char* argv[]) {
+ return 0;
+}