DDE后端(非dentry):测试中发现的不足和bug
2013-08-02 17:19
573 查看
inotify源码:https://github.com/linuxdeepin/dde/tree/develop/app/desktop
测试代码源码:https://github.com/linuxdeepin/dde/tree/desktop_test/app/desktop/test
1. handle_rename()内存溢出
2、void handle_new(GFile* f);
bug同上
3、pixbuf.c中get_data_uri_by_path()中未释pixbuf
现在已释放
4、pixbuf_to_canvas_data执行效率太低了,很慢
一个百度的logo,test 1分钟才到2%。 有待优化,里面就是用两个for循环对图像处理的
char* pixbuf_to_canvas_data(GdkPixbuf* pixbuf)
测试代码源码:https://github.com/linuxdeepin/dde/tree/desktop_test/app/desktop/test
1. handle_rename()内存溢出
[ 19%] Testing handle_rename... ** (desktop:4431): WARNING **: Did't know file type /tmp/test_files/360wallpaper38.jpg2 ** Message: console message: file:///home/ycl/dde/resources//desktop/js/desktop.js @42: don't support type [ 19%] Testing handle_rename... ** (desktop:4431): ERROR **: Test handle_rename Failed 跟踪/断点陷阱
void handle_rename(GFile *, GFile *); Test({ GFile *old_f = g_file_new_for_path(file1); gchar *filename = g_strconcat(file1, "2", NULL); GFile *new_f = g_file_new_for_path(filename); handle_rename(old_f, new_f); g_free(filename); g_object_unref(old_f); g_object_unref(new_f); }, "handle_rename");
2、void handle_new(GFile* f);
bug同上
3、pixbuf.c中get_data_uri_by_path()中未释pixbuf
现在已释放
char* get_data_uri_by_path(const char* path) { GError *error = NULL; GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file(path, &error); if (error != NULL) { g_warning("%s\n", error->message); g_error_free(error); return NULL; } char* c = get_data_uri_by_pixbuf(pixbuf); g_object_unref(pixbuf); return c; }
4、pixbuf_to_canvas_data执行效率太低了,很慢
一个百度的logo,test 1分钟才到2%。 有待优化,里面就是用两个for循环对图像处理的
char* pixbuf_to_canvas_data(GdkPixbuf* pixbuf)
相关文章推荐
- DDE后端之dentry(二):从测试中发现的不足和bug
- DDE后端之dentry(三):用bug说明对symbolic_link的处理
- DDE后端之dentry(一):从测试经验看运行机制 (move copy trash delete)
- 2016最后一贴,终于调通一个测试示例,并发现一个BUG???
- 测试的发现遗漏BUG的做法
- 在你的用户之前发现BUG--Xamarin 测试云
- 利用TD将测试过程中发现的Bug与需求关联
- 刚测试了一下就发现个大bug
- 软件测试思想者 - 快速发现软件缺陷(Bug)八法
- 软件测试的目的是验证需求还是发现bug?
- 软件测试的目的是验证需求还是发现bug?
- 2013年7月12日“修复 Migration 测试发现的 Bug”
- 一个软件,你测试了一个月都没有发现bug,这说明什么?你怎么办?
- 测试中发现Bug后的处理过程
- 今天测试发现qwebsocket有个bug
- 通过测试发现的Exchange 2013 CU16存在的一个小bug
- 乐凯宝网站维护心得,二是调修改短信接口,测试后发现余额不足,更改账号和密码即可,附代码
- 在测试Adhesive的时候发现一个Mongodb官方驱动1.1.0.4184比较严重的BUG
- 软件测试-如何快速发现Bug
- bug,为了发现bug而做测试