Older gawk doesn't understand the -e command line switch. In fact passing a
program
to gawk on command line doesn't require any switch. This fixes running the
icastats_test
on RHEL-6 with GNU Awk 3.1.7
---
src/tests/icastats_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tests/icastats_test.c b/src/tests/icastats_test.c
index cac56bc..bf18b36 100644
--- a/src/tests/icastats_test.c
+++ b/src/tests/icastats_test.c
@@ -232,7 +232,7 @@ void check_icastats(int algo_id, char *stat)
hw = check_hw(algo_id);
- sprintf(awk, "icastats | awk -e '{ if($0~\"%s\") if(NR>12) print
$%d,$%d;\
+ sprintf(awk, "icastats | awk '{ if($0~\"%s\") if(NR>12) print $%d,$%d;\
else print $%d,-1\
}'",
stat, hw?4:7, hw?5:8, hw?3:5);
--
1.9.3
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech