[Rpm-maint] [rpm-software-management/rpm] Test 85 is racy (Issue #3106)

Michal Domonkos notifications at github.com
Fri May 17 10:12:06 UTC 2024


The following test has failed on my local system once:

```
85. rpmmacro.at:1372: testing rpmlua ...                                                                                                                                                                                                                     
/rpmmacro.at:1375:                                                                                                                                                                                                                                           
runroot_other rpmlua /data/t1.lua a b                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                             
/rpmmacro.at:1388:                                                                                                                                                                                                                                           
runroot_other rpmlua --opts=ot: /data/t1.lua -- -t1 a                                                                                                                                                                                                        
                                                                                                                                                                                                                                                             
/rpmmacro.at:1400:                                                                                                                                                                                                                                           
runroot_other rpmlua -e "print(macros.basename('/some/thing'))"                                                                                                                                                                                              
                                                                                                                                                                                                                                                             
/rpmmacro.at:1408:                                                                                                                                                                                                                                           
runroot_other rpmlua -e "for i, v in ipairs({'true', 'false', 'grue'}) do print(rpm.execute('/bin/'..v)) end"                                                                                                                                                
                                                                                                                                                                                                                                                             
/rpmmacro.at:1418:                                                                                                                                                                                                                                           
runroot_other rpmlua -e 'pid = posix.fork(); if pid == 0 then a,b,c=rpm.redirect2null(-1); print(string.format("%s\t%s\t%s", a,b,c)); io.flush() else posix.wait(pid) end'                                                                                   
                                                                                                                                                                                                                                                             
--- -   2024-05-17 10:00:24.268298356 +0000                                                                                                                                                                                                                  
+++ /srv/rpmtests.dir/at-groups/85/stderr       2024-05-17 10:00:24.266672563 +0000                                                                                                                                                                          
@@ -1,4 +1,4 @@                                                                                                                                                                                                                                              
 warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead                                                                                                                                             
-warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead                                                                                                                                             
 warning: runaway fork() in Lua script                                                                                                                                                                                                                       
+warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead                                                                                                                                             
                                                                                                                                                                                                                                                             
85. rpmmacro.at:1372: 85. rpmlua (rpmmacro.at:1372): FAILED (rpmmacro.at:1418)
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3106
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3106 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240517/1ac12898/attachment-0001.html>


More information about the Rpm-maint mailing list