summaryrefslogtreecommitdiff
path: root/package/ltp/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-27 21:07:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-27 21:07:46 +0200
commitb38ddb748be02e1a8d340520c50819f15a78a30c (patch)
treee36bb3e296f885bdc47248935e1a847a5fd0d750 /package/ltp/patches
parent120fa5a3bfee8bdbdf2441cdd1b5aff0e4513db4 (diff)
add ltp package, add more uClibc options to have a wider test range
Diffstat (limited to 'package/ltp/patches')
-rw-r--r--package/ltp/patches/patch-runtest_sched13
-rw-r--r--package/ltp/patches/patch-testcases_realtime_lib_libstats_c16
2 files changed, 29 insertions, 0 deletions
diff --git a/package/ltp/patches/patch-runtest_sched b/package/ltp/patches/patch-runtest_sched
new file mode 100644
index 000000000..a157cb0af
--- /dev/null
+++ b/package/ltp/patches/patch-runtest_sched
@@ -0,0 +1,13 @@
+--- ltp-full-20140422.orig/runtest/sched 2014-04-23 10:36:54.000000000 +0200
++++ ltp-full-20140422/runtest/sched 2014-06-27 15:02:00.941026480 +0200
+@@ -6,8 +6,8 @@ pth_str03 pth_str03
+ time-schedule01 time-schedule
+ trace_sched01 trace_sched -c 1
+
+-hackbench01 hackbench 50 process 1000
+-hackbench02 hackbench 20 thread 1000
++hackbench01 hackbench 50 process 500
++hackbench02 hackbench 20 thread 500
+
+ sched_cli_serv run_sched_cliserv.sh
+ # Run this stress test for 2 minutes
diff --git a/package/ltp/patches/patch-testcases_realtime_lib_libstats_c b/package/ltp/patches/patch-testcases_realtime_lib_libstats_c
new file mode 100644
index 000000000..d35130dc4
--- /dev/null
+++ b/package/ltp/patches/patch-testcases_realtime_lib_libstats_c
@@ -0,0 +1,16 @@
+from buildroot
+
+--- ltp-full-20140422.orig/testcases/realtime/lib/libstats.c 2014-04-23 10:37:00.000000000 +0200
++++ ltp-full-20140422/testcases/realtime/lib/libstats.c 2014-06-27 10:55:59.401744516 +0200
+@@ -46,6 +46,11 @@
+ #include <libstats.h>
+ #include <librttest.h>
+
++#ifdef __UCLIBC__
++/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */
++#define exp10(x) (exp((x) * log(10)))
++#endif /* __UCLIBC__ */
++
+ int save_stats = 0;
+
+ /* static helper functions */