~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to tests/regression/subdomain/strace.sh

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/bash
2
 
# $Id: strace.sh 61 2006-05-19 18:32:14Z steve-beattie $
3
 
 
4
 
#       Copyright (C) 2002-2005 Novell/SUSE
5
 
#
6
 
#       This program is free software; you can redistribute it and/or
7
 
#       modify it under the terms of the GNU General Public License as
8
 
#       published by the Free Software Foundation, version 2 of the
9
 
#       License.
10
 
 
11
 
# strace.sh, helper function for generating ptrace data
12
 
 
13
 
# Trace output is not needed by test harness so /dev/null by default
14
 
# Change here if data is needed to be retained for manual examination.
15
 
_tracefile=/dev/null
16
 
 
17
 
ret=`/usr/bin/strace -o $_tracefile $* 2>&1`
18
 
 
19
 
if [ $? -eq 0 ]
20
 
then
21
 
        echo "PASS"
22
 
else
23
 
        echo "FAIL: $ret"
24
 
fi