From a8d45eff28e7e186d0749e3e9cf980a23d93231e Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 24 May 2019 17:07:22 +0300 Subject: Implement shutdown components * src/pies.h: Update comment. * src/progman.c (register_prog0): Register shutdown components in disabled state. (program_shutdown): New function. (progman_stop): Call program_shutdown. * tests/shutdown.at: New test. * tests/Makefile.am: Add new test. * tests/testsuite.at: Likewise. * tests/aux/startup: Rename to tests/aux/touchfile * tests/startup.at: Reflect the change. --- tests/aux/startup | 7 ------- tests/aux/touchfile | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100755 tests/aux/startup create mode 100755 tests/aux/touchfile (limited to 'tests/aux') diff --git a/tests/aux/startup b/tests/aux/startup deleted file mode 100755 index b9d92a3..0000000 --- a/tests/aux/startup +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -dir=${1:?} -time=${2:?} -tag=${3:?} - -touch $dir/$tag -sleep $time diff --git a/tests/aux/touchfile b/tests/aux/touchfile new file mode 100755 index 0000000..b9d92a3 --- /dev/null +++ b/tests/aux/touchfile @@ -0,0 +1,7 @@ +#!/bin/sh +dir=${1:?} +time=${2:?} +tag=${3:?} + +touch $dir/$tag +sleep $time -- cgit v1.2.1