summaryrefslogtreecommitdiffstats
path: root/tests/run-native-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-native-test.sh')
-rwxr-xr-xtests/run-native-test.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh
index b543922c..d19007f2 100755
--- a/tests/run-native-test.sh
+++ b/tests/run-native-test.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2005, 2006 Red Hat, Inc.
+# Copyright (C) 2005, 2006, 2013 Red Hat, Inc.
# This file is part of elfutils.
#
# This file is free software; you can redistribute it and/or modify
@@ -45,7 +45,14 @@ native_cleanup()
test_cleanup
}
-trap native_cleanup 0 1 2 15
+native_exit()
+{
+ native_cleanup
+ exit_cleanup
+}
+
+trap native_cleanup 1 2 15
+trap native_exit 0
for cc in "$HOSTCC" "$HOST_CC" cc gcc "$CC"; do
test "x$cc" != x || continue