Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/pidof.tests

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 532 by niro, Sat Sep 1 22:45:15 2007 UTC revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  # pidof tests.  # pidof tests.
4  # Copyright 2005 by Bernhard Fischer  # Copyright 2005 by Bernhard Reutner-Fischer
5  # Licensed under GPL v2, see file LICENSE for details.  # Licensed under GPL v2, see file LICENSE for details.
6    
7  # AUDIT:  # AUDIT:
# Line 22  optional FEATURE_PIDOF_SINGLE Line 22  optional FEATURE_PIDOF_SINGLE
22  testing "pidof -s" "pidof -s init" "1\n" "" ""  testing "pidof -s" "pidof -s init" "1\n" "" ""
23    
24  optional FEATURE_PIDOF_OMIT  optional FEATURE_PIDOF_OMIT
25  testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" ""  # This test fails now because process name matching logic has changed,
26    # but new logic is not "wrong" either... see find_pid_by_name.c comments
27    #testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" ""
28  testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" ""  testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" ""
29  testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" ""  testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" ""
30    

Legend:
Removed from v.532  
changed lines
  Added in v.816